import winsound


class Clock:
    price = None
    id = None

    def ring(self):
        """
        可以直接让当前
        :return:
        """
        winsound.Beep(2000, 3000)

clock = Clock()
clock.price = 123.90
clock.id = '123456'

print(f"当前clock的ID是：{clock.id},对应的price是：{clock.price}")
clock.ring()
